package com.itheima.homework6;

public class Demo6 {
    public static void main(String[] args) {
        Breeder breeder = new Breeder();
        breeder.feet(new Dog());
        new Dog().swim();
        breeder.feet(new Frog());
        new Frog().swim();
        breeder.feet(new Sheep());
    }
}
